﻿/**********************************************************************
 * @file   OperatorsGeometryImport.h
 * @brief  几何文件导入事件操作器
 * @author liuzhonghua (liuzhonghuaszch@163.com)
 * @date   2024-10-23
 *********************************************************************/
#ifndef _OperatorsGeometryImport_H
#define _OperatorsGeometryImport_H

#include "FITK_Kernel/FITKCore/FITKActionOperator.h"
#include "FITK_Kernel/FITKCore/FITKOperatorRepo.h"
#include "FITK_Kernel/FITKCore/FITKThreadTask.h"

namespace ModelOper
{
    /**
     * @brief 几何文件导入操作器
     * @author liuzhonghua (liuzhonghuaszch@163.com)
     * @date   2024-10-23
     */
    class OperatorsGeometryImport :public Core::FITKActionOperator
    {
        Q_OBJECT;
    public:
        /**
         * @brief Construct a new Operators Geometry Import object
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date   2024-10-23
         */
        explicit OperatorsGeometryImport() = default;
        /**
         * @brief Destroy the Operators Geometry Import object
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date   2024-10-23
         */
        virtual ~OperatorsGeometryImport() = default;
        /**
         * @brief 执行
         * @return true 成功
         * @return false 失败
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date   2024-10-23
         */
        virtual bool execGUI() override;
        /**
         * @brief 执行结果处理
         * @return true 成功
         * @return false 失败
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date   2024-10-23
         */
        virtual bool execProfession() override;

    private:
        /**
         * @brief    几何点存储到SEA子系统中
         * @param[i] objID 
         * @return   void
         * @author   liuzhonghua (liuzhonghuaszch@163.com)
         * @date     2024-11-18
         */
        void setSEASubSystemNodes(int objID);
    };

    // 按钮注册相关操作
    Register2FITKOperatorRepo(actionImportGeometry, OperatorsGeometryImport);
}

#endif